package com.chinaoly.baotou.web.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @description class
 * Create by sunlm
 * on 2022-09-28 16:00
 * Make small but daily progress
 */
@Data
@Table(name = "T_YJ_HEADLINE")
@ApiModel(value = "头条实体",description = "存储头条信息")
public class YjHeadLineVo implements Serializable {

    private static final long serialVersionUID = -6761092040623459420L;
    @Id
    @ApiModelProperty(value = "头条ID",required = false)
    private String headlineId;
    @ApiModelProperty(value = "头条标题",required = true)
    private String headlineTitle;
    @ApiModelProperty(value = "头条发布者",required = true)
    private String headlinePublisher;
    @ApiModelProperty(value = "文章类型Code",required = true)
    private String articleTypeCode;
    @Transient
    @ApiModelProperty(value = "文章类型",required = false)
    private String articleType;
    @ApiModelProperty(value = "头条封面",required = true)
    private String headlineCoverPicture;
    @ApiModelProperty(value = "头条内容",required = true)
    private String headlineContent;
    @ApiModelProperty(value = "头条阅读量",required = true)
    private Integer headlineReadCount;
    @ApiModelProperty(value = "发布时间",required = false)
    private Date createTime;
    @ApiModelProperty(value = "是否删除：0未删除，1删除",required = true)
    private Integer effectFlag ;
}
